package com.itany.boot.nmms.service;

import com.itany.boot.nmms.entity.ProductType;
import com.itany.boot.nmms.exception.ProductTypeExistException;
import com.itany.boot.nmms.exception.RequestParamsException;

import java.util.List;

public interface ProductTypeService {
    List<ProductType> findAll();

    void add(String name) throws RequestParamsException, ProductTypeExistException;

    void modifyStatus(String id) throws RequestParamsException;

    ProductType findById(String id);

    void modify(String id, String name) throws RequestParamsException, ProductTypeExistException;

    List<ProductType> findAllByStatus();
}
